package com.zs.members.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @program: clms-nine
 * @description: 会员账号实体类
 * @author: 张硕
 * @create: 2021-07-23 16:26
 **/
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_client")
@ApiModel(value = "会员账号对象",description = "会员管理表，会员注册")
public class Client extends Model<Client> {

    @ApiModelProperty(value = "会员ID")
    @TableId(value = "id", type= IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "会员账号")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "会员密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "会员的盐")
    @TableField("pw_salt")
    private String pwSalt;

    @ApiModelProperty(value = "会员的状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "证件类型")
    @TableField("id_type")
    private String idType ;

    @ApiModelProperty(value = "正面")
    @TableField("path_front")
    private String pathFront ;

    @ApiModelProperty(value = "反面")
    @TableField("path_reverse")
    private  String pathReverse;

    @ApiModelProperty(value = "客户名字")
    @TableField("name")
    private  String name;

    @ApiModelProperty(value = "联系人")
    @TableField("contact_name")
    private  String contactName;

    @ApiModelProperty(value = "联系电话")
    @TableField("contact_phone")
    private  String contactPhone;

    @ApiModelProperty(value = "联系地址")
    @TableField("contact_address")
    private  String contactAddress;

    @ApiModelProperty(value = "驾照号")
    @TableField("license_no")
    private String licenseNo;

    @ApiModelProperty(value = "性别")
    @TableField("sex")
    private Integer sex ;

    @ApiModelProperty(value = "电话")
    @TableField("phone_num")
    private String phoneNum;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "会员级别Id")
    @TableField("member_level_id")
    private Integer levelId ;

    @ApiModelProperty(value = "账户余额")
    @TableField("Account_Balance")
    private  Double accountBalance;

    @ApiModelProperty(value = "积分")
    @TableField("integration")
    private Integer integration;

    @ApiModelProperty(value = "成长值")
    @TableField("growth")
    private Double growth;

    @ApiModelProperty(value = "历史积分数量")
    @TableField("history_integration")
    private String historyIntegration ;

    @ApiModelProperty(value = "微信返回ID")
    @TableField("open_id")
    private  Integer openId;

    @ApiModelProperty(value = "登录验证token")
    @TableField("token")
    private String token ;

    @ApiModelProperty(value = "头像")
    @TableField("head_pic")
    private  String headPic;
}
